<!--
  This template loads for the 'tab.friend-detail' state (app.js)
  'friend' is a $scope variable created in the FriendsCtrl controller (controllers.js)
  The FriendsCtrl pulls data from the Friends service (service.js)
  The Friends service returns an array of friend data
-->
<ion-view devin-hide-tabs="true" view-title="{{vm.disable ? '查看' :'销售'}}跟进">
  <ion-nav-buttons side="right">
    <span ng-click="savePre()">
      <span ng-hide="{{vm.disable}}" class="nav-right-button">保存</span>
    </span>
  </ion-nav-buttons>
  <ion-content class="my-bg">
    <ion-item class="item item-padding-left">
      <devin-task-item isdisable="{{vm.disable}}"  ng-click="vm.disable || goChoice('CUSTOMER_EXPECTATION',projectIntention.customerExpectation)" icon="img/icon-people.png" label="业主意愿" canchoice="true"  choicecontent="{{projectIntention.customerExpectationDis}}"></devin-task-item>
      <devin-task-item isdisable="{{vm.disable}}"  ng-click="vm.disable || goChoice('PROPERTY_RIGHT',projectIntention.propertyRight)" widthpre="35" icon="img/icon-roof.png" label="屋面产权归属" canchoice="true" choicecontent="{{projectIntention.propertyRightDis}}"></devin-task-item>
      <devin-task-item isdisable="{{vm.disable}}" icon="img/icon1.png" label="进户交通" hidearrow="true" canchoice="false" content="projectIntention.jhjt"></devin-task-item>
      <devin-task-item isdisable="{{vm.disable}}" ng-click="vm.disable ? lookImage('JHJTT') : choiceImage('JHJTT')" icon="img/icon-pic.png" label="进户交通图" canchoice="true" placetext="{{vm.showImageDesc}}"></devin-task-item>
    </ion-item>
    <div class="task-list-div-bg"></div>
    <ion-item class="item item-padding-left">
      <devin-task-item isdisable="{{vm.disable}}"  ng-click="vm.disable || goChoiceWithOther('CONSTRUCTION',projectIntention.jsf,'开发商',projectIntention.kfs)" icon="img/icon1.png" label="建设方" canchoice="true" choicecontent="{{projectIntention.jsfDis}}"></devin-task-item>
      <devin-task-item isdisable="{{vm.disable}}"  ng-click="vm.disable || goChoice('COMPLETION_YEAR',projectIntention.jzjgnf)" icon="img/icon-calc.png" label="建筑竣工年份" canchoice="true" choicecontent="{{projectIntention.jzjgnfDis}}"></devin-task-item>
      <devin-task-item isdisable="{{vm.disable}}"  ng-click="vm.disable || goChoice('HOUSE_STRUCTURE',projectIntention.fwjg)" icon="img/icon-roof-2.png" label="房屋结构" canchoice="true" choicecontent="{{projectIntention.fwjgDis}}"></devin-task-item>
      <devin-task-item isdisable="{{vm.disable}}"  ng-click="vm.disable || goChoice('ROOF_TYPE',projectIntention.wdlx)" icon="img/icon-roof-2.png" label="屋顶类型" canchoice="true" choicecontent="{{projectIntention.wdlxDis}}"></devin-task-item>
      <devin-task-item isdisable="{{vm.disable}}"  ng-click="vm.disable || goChoiceWithOther('ROOF_STRUCTURE',projectIntention.wdjg,'其它',projectIntention.wdjgQt)" icon="img/icon-roof-2.png" label="房顶结构" canchoice="true" choicecontent="{{projectIntention.wdjgDis}}"></devin-task-item>
      <devin-task-item isdisable="{{vm.disable}}"  ng-click="vm.disable || goChoice('ROOF_LOAD',projectIntention.wdhzDis)" icon="img/icon-roof-2.png" label="屋顶荷载" canchoice="true" choicecontent="{{projectIntention.wdhzDis}}"></devin-task-item>
      <devin-task-item isdisable="{{vm.disable}}" icon="img/icon-stair.png" inputtype="number" label="楼高" rightword="m" hidearrow="true" canchoice="false" content="projectIntention.buildingHeight"></devin-task-item>
      <devin-task-item isdisable="{{vm.disable}}" icon="img/icon-stair.png" inputtype="number" label="层数" rightword="F" hidearrow="true" canchoice="false" content="projectIntention.floors"></devin-task-item>
    </ion-item>
    <div class="task-list-div-bg"></div>
    <ion-item class="item item-padding-left">
      <devin-task-item isdisable="{{vm.disable}}" icon="img/icon-building.png" widthpre="20" inputtype="number" label="周围高层建筑相对位置" canchoice="false" rightword="m" content="projectIntention.zwwz"></devin-task-item>
      <devin-task-item isdisable="{{vm.disable}}" icon="img/icon-building.png" widthpre="20" inputtype="number" label="周围高层建筑相对高度" canchoice="false" rightword="m" content="projectIntention.zwgd"></devin-task-item>
    </ion-item>
    <div class="task-list-div-bg"></div>
    <!--<ion-item class="item-bg" ng-hide="" style="padding: 0px;">-->
      <!--<devin-task-item icon="img/icon-pen.png" ng-click="goInputText(projectIntention, 'remark', vm.disable)" label="意向备注" canchoice="false" content="projectIntention.remark"></devin-task-item>-->
    <!--</ion-item>-->
    <div ng-click="goInputText(projectIntention, 'remark', vm.disable)" style="height: 50px;line-height: 50px;background-color:#FFFFFF;border-bottom:1px solid #CCCCCC!important">
      <img class="check-receive-imgcss" ng-src="img/icon-pen.png">
      <span class="check-receive-labeles" style="padding-left: 18px;!important;">跟进备注</span>
      <i style="font-size: 14px!important; margin-right: -4px;!important;float: right;padding-right: 20px;color: #cccccc" class="ion-chevron-right"></i>
      <span class="check-receive-label" style="color: #aaaaaa;margin-right: 10px!important;">{{!projectIntention.remark ? "请填写" : projectIntention.remark}}</span>
    </div>
    <div class="page-bottom"></div>
  </ion-content>
</ion-view>
